-- GENERATED SPELL FOR [Drakkari Shaman] --


function spell0_26447(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26447', 3000, 1)
end

function spell1_26447(pUnit, Event) --@Mastered Elements,Self--
pUnit:FullCastSpellOnTarget(52290,pUnit)
pUnit:RegisterEvent('Sorts_26447', 0, 1)
end

function Sorts_26447(pUnit, Event)
local choix_sorts_26447 = math.random(0, 1)
if choix_sorts_26447 == 0 then
pUnit:RegisterEvent('spell0_26447', 1, 1)
end
if choix_sorts_26447 == 1 then
pUnit:RegisterEvent('spell1_26447', 1, 1)
end
end

function mob26447_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26447', math.random(1500, 3000), 1)
end

function mob26447_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26447_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26447_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26447, 1, 'mob26447_Action')
RegisterUnitEvent(26447, 2, 'mob26447_Leave')
RegisterUnitEvent(26447, 3, 'mob26447_Kill')
RegisterUnitEvent(26447, 4, 'mob26447_Die')
